package com.zhihuiyanche.dao.orders;

import java.util.List;
import java.util.Map;

import com.zhihuiyanche.domain.Orders;

public interface OrdersDao{

	/**
	 * 添加
	 * @param Orders
	 * @return
	 */
	public void insertOrders(Orders orders);

	/**
	 * 查询
	 * @param Orders
	 * @return
	 */
	public List<Orders> getOrdersByCondition(Orders orders);
	
	/**
	 *处理订单状态
	 * @param Orders
	 * @return
	 */
	public boolean saveOrdersSuccess(Orders orders);
	
	/**
	 * 根据Id删除
	 * @param Orders
	 * @return
	 */
	public boolean deleteOrdersById(Orders orders);
	
	/**
	 * 根据条件删除
	 * @param Orders
	 * @return
	 */
	public boolean deleteOrdersByCondition(Orders orders);
	
	/**
	 * 根据Id修改
	 * @param Orders
	 * @return
	 */
	public boolean updateOrdersById(Orders orders);
	
	/**
	 * 根据条件修改
	 * @param data
	 * @return
	 */
	public boolean updateOrdersByCondition(Map<String,Object> data);
	
	/**
	 * 根据id查询
	 * @param Orders
	 * @return
	 */
	public Orders getOrdersById(Orders orders);
	
	/**
	 * 查询所有
	 * @param Orders
	 * @return
	 */
	public List<Orders> getOrdersAll(Orders orders);
	
	/**
	 * 分页查询
	 * @param Orders
	 * @return
	 */
	public List<Orders> getOrdersByPage(Orders orders);
	
	/**
	 * 分页查询查询总数
	 * @param Orders
	 * @return
	 */
	public Integer getOrdersByPageCount(Orders orders);
	
	/**
	 * 根据多个id查询
	 * @param Orders
	 * @return
	 */
	
	public List<Orders> getOrdersByIds(Orders orders);
	
}